package dao;

import org.springframework.stereotype.Repository;

@Repository //功能与@Component一样，只是表示它是数据库存储对象
public class Cat implements Animal {

    public Animal cry() {
        System.out.println("喵喵喵");
        return null;
    }


    public String getAnimalName() {
        return "cat";
    }
}
